package com.alks.common.config.ruoyi;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "ruoyi")
public class RuoYiConfig {
  private static String name;
  
  private static String version;
  
  private static String copyrightYear;
  
  private static boolean demoEnabled;
  
  private static String profile;
  
  private static boolean addressEnabled;
  
  private static String httpUrl;
  
  public static String getHttpUrl() {
    return httpUrl;
  }
  
  public void setHttpUrl(String httpUrl) {
    RuoYiConfig.httpUrl = httpUrl;
  }
  
  public static String getName() {
    return name;
  }
  
  public void setName(String name) {
    RuoYiConfig.name = name;
  }
  
  public static String getVersion() {
    return version;
  }
  
  public void setVersion(String version) {
    RuoYiConfig.version = version;
  }
  
  public static String getCopyrightYear() {
    return copyrightYear;
  }
  
  public void setCopyrightYear(String copyrightYear) {
    RuoYiConfig.copyrightYear = copyrightYear;
  }
  
  public static boolean isDemoEnabled() {
    return demoEnabled;
  }
  
  public void setDemoEnabled(boolean demoEnabled) {
    RuoYiConfig.demoEnabled = demoEnabled;
  }
  
  public static String getProfile() {
    return profile;
  }
  
  public void setProfile(String profile) {
    RuoYiConfig.profile = profile;
  }
  
  public static boolean isAddressEnabled() {
    return addressEnabled;
  }
  
  public void setAddressEnabled(boolean addressEnabled) {
    RuoYiConfig.addressEnabled = addressEnabled;
  }
  
  public static String getAvatarPath() {
    return getProfile() + "/avatar";
  }
  
  public static String getDownloadPath() {
    return getProfile() + "/download/";
  }
  
  public static String getUploadPath() {
    return getProfile() + "/upload";
  }
  
  public static String getExportUploadPath() {
    return getProfile() + "/export/upload";
  }
  
  public static String getStylePhotoPath() {
    return getProfile() + "/styleColor/photo";
  }
  
  public static String getProblemPhotoPath() {
    return getProfile() + "/pdaImg/problemImg";
  }
  
  public static String getSolvePhotoPath() {
    return getProfile() + "/pdaImg/solveImg";
  }
  
  public static String getDevelopStylePhotoPath() {
    return getProfile() + "/develop/styleColor/photo";
  }
  
  public static String getSampleStylePhotoPath() {
    return getProfile() + "/sample/styleColor/photo";
  }
  
  public static String getJxlsModalPath() {
    return getProfile() + "/jxls/modal/";
  }
}
